package com.video.moderation.repository;

import com.video.moderation.entity.SysMember;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SysMemberRepository extends JpaRepository<SysMember, Integer> {
    
    @Query(value = "SELECT m FROM SysMember m WHERE m.memberNum = :memberNum")
    SysMember findSysMemberByAccount(@Param("memberNum") String memberNum);
    
}
